// Dynamic Iframe loader
function loadmonkeyframe(theURL)
{
	document.getElementById("monkeyframe").src=theURL;
}
function loadpollframe(theURL)
{
	document.getElementById("pollframe").src=theURL;
}

// resizes Iframe according to content
function resizeMe(obj){ 
docHeight = obj.document.body.scrollHeight
 obj.style.height = docHeight + 5 + 'px'
 } 

// Set form value based on image click
function goSet(obj, val){
	obj.value = val;
} 

function createWindow(cUrl,cName,cFeatures) {
	var xWin = window.open(cUrl,cName,cFeatures)
}


// set your interval in milliseconds
		
// this reloads the iframe, and triggers the next reload interval
function doreload()
{
	var reloadInterval = 50000;     //50 seconds
	var iframe = document.getElementById('scoresframe');
	if (!iframe) return false;
	iframe.src = iframe.src;
	setTimeout("doreload()", reloadInterval);
}
